<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Perform signing operation, return detached signature(s)</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.rnp-op-sign-cleartext.html">« rnp_op_sign_cleartext</a></li>
      <li style="float: right;"><a href="function.rnp-op-sign.html">rnp_op_sign »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.rnp.html">Rnp 函数</a></li>
    <li>Perform signing operation, return detached signature(s)</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.rnp-op-sign-detached" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rnp_op_sign_detached</h1>
  <p class="verinfo">(PECL rnp &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">rnp_op_sign_detached</span> &mdash; <span class="dc-title">Perform signing operation, return detached signature(s)</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rnp-op-sign-detached-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rnp_op_sign_detached</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.rnpffi.html" class="type RnpFFI">RnpFFI</a></span> <code class="parameter">$ffi</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">array</span> <code class="parameter">$keys_fp</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code><span class="initializer"> = ?</span></span><br>): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">

  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.rnp-op-sign-detached-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">ffi</code></dt>

    <dd>

     <p class="para">
      The FFI object returned by rnp_ffi_create.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">data</code></dt>

    <dd>

     <p class="para">
      Data to be signed.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">keys_fp</code></dt>

    <dd>

     <p class="para">
      Array with key fingerprints. At least one key must be provided.
      Keys should be present in <code class="parameter">ffi</code>.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">options</code></dt>

    <dd>

     <p class="para">
      An associative array with options.
     </p>
     <table class="doctable informaltable">
      
       <thead>
        <tr>
         <th>Key</th>
         <th>Data type</th>
         <th>说明</th>
        </tr>

       </thead>

       <tbody class="tbody">
        <tr>
         <td><code class="literal">&quot;armor&quot;</code></td>
         <td>boolean</td>
         <td>Enable ASCII-armored output. Disabled by default.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;hash&quot;</code></td>
         <td>string</td>
         <td>Set hash algorithm used during signature calculation.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;creation_time&quot;</code></td>
         <td>integer</td>
         <td>Set signature creation time in seconds since Jan, 1 1970 UTC. By default current time is used.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;expiration_time&quot;</code></td>
         <td>integer</td>
         <td>Set signature expiration time in seconds since the creation time. 0 value is used to mark
          signature as non-expiring (default value).</td>
        </tr>

       </tbody>
      
     </table>

    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rnp-op-sign-detached-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Detached signature(s) data on success 或者在失败时返回 <strong><code>false</code></strong>.
  </p>
 </div>



</div></div></div></body></html>